package com.efrei.uchat.server.strategies;

import java.util.List;

import com.efrei.uchat.exception.UChatException;
import com.efrei.uchat.message.Message;
import com.efrei.uchat.server.UChatServer;

public interface MessageStrategy {
	
	/**
	 * define a custom worker for a message type
	 * @param message
	 * @param context
	 * @return message to send to clients
	 * @throws UChatException
	 */
	public List<Message> manage(Message message, UChatServer context) throws UChatException;
}
